package com.lizx.framework.web.smart.framework.core.wrapper;

import java.util.Map;

/**
 * 视图包装器
 *
 * @Author: lizx
 * @Description:
 * @Date: Create in 2019/1/18 11:53 AM
 */
public class ViewWrapper {

    /**
     * 视图路径
     */
    private String path;
    /**
     * 模型数据
     */
    private Map<String, Object> model;

    public ViewWrapper(String path, Map<String, Object> model) {
        this.path = path;
        this.model = model;
    }

    public ViewWrapper addModel(String key, String value) {
        model.put(key, value);
        return this;
    }

    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
